/// @description Insert description here
// You can write your code in this editor
objPlayer.frozen=1;
objPlayer.alarm[11]=fps;
//frozen=0;
switch(i){
	case 0:
	audio_stop_sound(sndSz)
	audio_play_sound(sndFire,1,0);
	alarm[2] = fps;
	ac= fps*3;
	break;
	case 1:
	audio_stop_sound(sndSz)
	audio_play_sound(sndDjia,1,0);
	alarm[3] = fps*3;
	state = 2;
	temvar[? "a"] = irandom_range(1,2);
	ac = fps*6.5;
	break;
	case 2:
	audio_stop_sound(sndSz)
	audio_play_sound(sndIyu,1,0);
	state = 2;
	temvar[? "a"] = irandom_range(1,2);
	alarm[6] = fps*3;
	ac = fps*10;
	break;
}
i++;
if(i>2) i =0;
//hspeed=3;
//alarm[(i==0?2:(i==1?3:6))] = (i==0 ? fps : fps*3);
//ac= (i==0 ? fps*3 : (i==1 ? fps*6.5: fps*10));